package app.qrcode.browser.ykpixabay.logic.network

import app.qrcode.browser.ykpixabay.logic.dao.KeyDao
import app.qrcode.browser.ykpixabay.logic.model.Pic
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * Created by YiGo on 2022/4/18.
 */
interface PixService {
    @GET("?&image_type=photo&per_page=200&lang=zh")
    suspend fun searchPic(
        @Query("q") searchWord: String,
        @Query("key") key:String = KeyDao.getKey().toString()
    ): Pic
}